#include <iostream>

using namespace std;

int main()
{
    //语法 sizeof(数据类型)
    //字符型
    cout << "sizeof(char) = " << sizeof(char) <<endl;
    cout << "sizeof(unsigned char) = " << sizeof(unsigned char) <<endl;
    //整型
    cout << "sizeof(short) = " << sizeof(short) <<endl;
    cout << "sizeof(unsigned short) = " << sizeof(unsigned short) <<endl;
    cout << "sizeof(int) = " << sizeof(int) <<endl;
    cout << "sizeof(unsigned int) = " << sizeof(unsigned int) <<endl;
    cout << "sizeof(long) = " << sizeof(long) <<endl;
    cout << "sizeof(unsigned long) = " << sizeof(unsigned long) <<endl;
    //浮点型
    cout << "sizeof(float) = " << sizeof(float) <<endl;
    cout << "sizeof(double) = " << sizeof(double) <<endl;
    return 0;
}